<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
</script>
    <div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#"   onclick="loadDiv('mainCenterDiv','${ctx}/sys/baseUnit/index')">列表</a>
                </li>
                <li>
                    <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/sys/baseUnit/form')">添加</a>
                </li>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="table-responsive no-border">
                        <div class="datatable-top">
                            <div class="pull-left">
                                <form:form id="searchForm" modelAttribute="baseUnit"  onsubmit="return loadDivForm('mainCenterDiv','searchForm','${ctx}/sys/baseUnit/index');" method="post" class="form-inline">
                                    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
                                    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
                                    <label>公司名称 ：</label><form:input path="name" htmlEscape="false" maxlength="50" class="form-control" />
                                    &nbsp;&nbsp;<label>名称拼音码 ：</label><form:input path="inputCode" htmlEscape="false" maxlength="50" class="form-control" />
                                    &nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
                                </form:form>
                            </div>
                        </div>
                        <table id="contentTable" class="table table-bordered table-striped mg-t datatable">
                            <thead>
                                <tr>
                                        <%--<th>主键</th>--%>
                                        <th>公司名称</th>
                                        <th>名称拼音码</th>
                                        <th>联系人</th>
                                        <th>联系人电话</th>
                                        <th>邮编</th>
                                        <th>传真</th>
                                        <th>地址</th>
                                        <th>开户行</th>
                                        <th>银行账号</th>
                                        <%--<th>状态</th>--%>
                                        <%--<th>排序</th>--%>
                                        <%--<th>机构ID</th>--%>
                                        <%--<th>标志</th>--%>
                                        <%--<th>创建人</th>--%>
                                        <%--<th>创建时间</th>--%>
                                        <%--<th>更新人</th>--%>
                                        <%--<th>更新时间</th>--%>
                                        <th>备注信息</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${page.list}" var="baseUnit">
                                <tr>
                                        <%--<td> ${baseUnit.id}</td>--%>
                                        <td> ${baseUnit.name}</td>
                                        <td> ${baseUnit.inputCode}</td>
                                        <td> ${baseUnit.linkMan}</td>
                                        <td> ${baseUnit.unitTel}</td>
                                        <td> ${baseUnit.unitPostCode}</td>
                                        <td> ${baseUnit.unitFax}</td>
                                        <td> ${baseUnit.unitAdd}</td>
                                        <td> ${baseUnit.unitBank}</td>
                                        <td> ${baseUnit.unitBankCode}</td>
                                        <%--<td> ${baseUnit.unitState}</td>--%>
                                        <%--<td> ${baseUnit.sort}</td>--%>
                                        <%--<td> ${baseUnit.orgId}</td>--%>
                                        <%--<td> ${baseUnit.delFlag}</td>--%>
                                        <%--<td> ${baseUnit.createBy.id}</td>--%>
                                        <%--<td> ${baseUnit.createDate}</td>--%>
                                        <%--<td> ${baseUnit.updateBy.id}</td>--%>
                                        <%--<td> ${baseUnit.updateDate}</td>--%>
                                        <td> ${baseUnit.remarks}</td>
                                    <td>
                                        <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/sys/baseUnit/form?id=${baseUnit.id}')" class="btn btn-success btn-xs">修改</a>
                                        <a href="#"  class="applyBt btn btn-danger btn-xs" onclick="confirmExtend('确认要删除该吗？',function(){delLoad('mainCenterDiv','${ctx}/sys/baseUnit/delete?id=${baseUnit.id}','${ctx}/sys/baseUnit/index')})">删除</a>
                                    </td>
                                </tr>
                            </c:forEach>

                        </table>
                        <div class="pagination">${page}</div>
                    </div>
                </div>
            </section>
        </div>
    </div>